<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1" name="viewport">
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}"/>
    <!--[if lt IE 9]>
    <script th:src="@{/js/html5.min.js}"></script>
    <script th:src="@{/js/respond.min.js}"></script>
    <![endif]-->
    <style>
        html, body {
            width: 100%;
            height: 100%;
            margin: 0;
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: rgb(170, 189, 183); /* 背景色 */
        }

        .layui-container {
            position: relative;
            width: 100%;
            height: 100%;
        }

        .admin-login-background {
            width: 360px;
            height: 300px;
            position: absolute;
            left: 50%;
            top: 40%;
            margin-left: -180px;
            margin-top: -100px;
        }

        .logo-title {
            text-align: center;
            letter-spacing: 2px;
            padding: 14px 0;
        }

        .logo-title h1 {
            color: #1E9FFF;
            font-size: 25px;
            font-weight: bold;
        }

        .login-form {
            /*background-color: rgba(200, 103, 246, 0.58); !* 表单颜色 *!*/
            background-color: rgba(90, 176, 146, 0.34); /* 表单颜色 */
            border: 1px solid #e6e6fa;
            border-radius: 3px;
            padding: 14px 20px;
            box-shadow: 0 0 8px #eeeeee;
        }

        .login-form .layui-form-item {
            position: relative;
        }

        .login-form .layui-form-item label {
            position: absolute;
            left: 1px;
            top: 1px;
            width: 38px;
            line-height: 36px;
            text-align: center;
            color: #d2d2d2;
        }

        .login-form .layui-form-item input {
            padding-left: 36px;
        }

        .captcha {
            width: 60%;
            display: inline-block;
        }

        .captcha-img {
            display: inline-block;
            width: 34%;
            float: right;
        }

        .captcha-img img {
            height: 34px;
            border: 1px solid #e6e6e6;
            height: 36px;
            width: 100%;
        }

        input[type="submit"] {
            width: 100%;
            padding: 10px;
            background-color: #1E9FFF;
            border: none;
            color: white;
            font-size: 16px;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        input[type="submit"]:hover {
            background-color: #0b7dda;
        }
    </style>
</head>
<body>
<div class="layui-container">
    <div class="admin-login-background">
        <form action="" class="layui-form login-form" method="post">
            <div class="layui-form-item logo-title">
                <h1>登录</h1>
            </div>
            <div class="layui-form-item">
                <label class="layui-icon layui-icon-username" for="username"></label>
                <input autocomplete="off" class="layui-input" lay-verify="required|account" name="username"
                       id="username" placeholder="用户名" type="text">
            </div>
            <div class="layui-form-item">
                <label class="layui-icon layui-icon-password" for="password"></label>
                <input autocomplete="off" class="layui-input" lay-verify="required|password" name="password"
                       id="password" placeholder="密码" type="password">
            </div>

            <input type="submit" value="登录">
        </form>
    </div>
</div>

<script th:src="@{/layui/layui.js}"></script>
<script th:src="@{/js/jquery.js}"></script>
<script th:src="@{/js/jq-module/jquery.particleground.min.js}"></script>
<script th:inline="javascript" type="text/javascript">
    var ctx = '[[@{/}]]'.replaceAll("\"", "").replace('//', '/');
</script>
<script>
    layui.use(['form'], function () {
        var form = layui.form;
        form.render();
        // 粒子线条背景
        $(document).ready(function () {
            $('.layui-container').particleground({
                dotColor: 'rgb(200, 103, 246)',
                lineColor: 'rgb(26,122,131)'
            });
        });
    });
</script>
</body>
</html>
